package org.mayuanxiaonong.timservice.pojo;

/**
 * 服务器主机节点POJO
 * 
 * @author 9527
 *
 */
public class Host {

	// 默认虚拟节点倍数
	public static final int DEFAULT_VIRTUAL_NUM = 100;

	private String ip;
	private int port;
	private int num = DEFAULT_VIRTUAL_NUM;

	public Host() {
		super();
	}

	public Host(String ip, int port, int num) {
		super();
		this.ip = ip;
		this.port = port;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Override
	public String toString() {
		return "Host [ip=" + ip + ", port=" + port + ", num=" + num + "]";
	}

}
